import axios from "axios";

export default {
  data() {
    return {
      houseListMy: []
    };
  },
  methods: {
    async initHouseListMy() {
      const {
        data: { errno, message, data }
      } = await axios.get("/api/house/house/my", {
        params: {
          pageSize: 10000,
          status: 2
        }
      });
      if (!errno) {
        this.houseListMy = data.data;
      } else {
        this.$message({ type: "error", message });
      }
    }
  },
  mounted() {
    this.initHouseListMy();
  }
};
